<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="css/info-mgt.css" />
<link rel="stylesheet" href="css/WdatePicker.css" />
	<link rel="stylesheet" type="text/css" href="css/jquery.dialog.css" />
	<link rel="stylesheet" href="css/index.css" />
<title>毕业生简历管理系统</title>
<style type="text/css">
	a:link {
 	font-size: 12px;
 	color: #000000;
	text-decoration: none;
	}
	a:visited {
	font-size: 12px;
	color: #000000;
 	text-decoration: none;
	}
	a:hover {
 	font-size: 12px;
 	color: #999999;
 	text-decoration: none;
	}
	svg:hover{
		transform: scale(1.2);
	}
	#hd .hd-wrap{
		background: cadetblue !important;
	}
</style>
</head>

<body>
<div id="container">
<div id="hd">
	<div class="hd-wrap ue-clear">
		<div class="top-light"></div>
		<h1>毕业生简历后台系统</h1>
		<div class="login-info ue-clear">
			<div class="welcome ue-clear"><span>欢迎您,</span><a href="candidateManage" class="user-name">${sessionScope.admin.account}</a></div>
		</div>
		<div class="toolbar ue-clear">
			<a href="candidateExit" class="quit-btn exit"></a>
		</div>
	</div>
</div>
<div id="bd">
	<div class="wrap ue-clear">
		<div class="sidebar">
			<!-- 目录部分 -->
			<h2 class="sidebar-header"><p>功能导航</p></h2>
			<ul class="nav">
				<li class="manage_c"><div class="nav-header" onclick="candidateSkip1()"><a class="ue-clear"><span>毕业生管理</span></a></div></li>
				<li class="manage_e"><div class="nav-header" onclick="candidateSkip2()"><a class="ue-clear"><span>用人单位管理</span></a></div></li>
				<li class="modify_a"><div class="nav-header" onclick="candidateSkip3()"><a class="ue-clear"><span>个人信息修改</span></a></div></li>
			</ul>
		</div>
		<!-- 显示部分 -->
		<div class="content">
<%--			<iframe id="iframe" width="100%" height="100%" frameborder="0"></iframe>--%>
		    <div class="title"><h2>求职者搜索</h2></div>
	<div class="query">
		<form method="post" action="adminSearchCanByParams">
			<div class="query-conditions ue-clear">
				<div class="conditions name ue-clear">
					<label>专业：</label>
					<select name="major" style="width:200px;height:28px;border:1px solid #C5D6E0">
						<option value="">不限</option>
						<option>软件工程</option>
						<option>经济管理</option>
						<option>数学</option>
						<option>土木工程</option>
						<option>法学</option>
					</select>
				</div>
				<div class="conditions operate-time ue-clear">
					<label>薪资范围：</label>
					<div class="select-wrap">
						<select name="salary_requirement" style="width:200px;height:28px;border:1px solid #C5D6E0">
							<option value="">不限</option>
							<option >3000-4000</option>
							<option >4001-5000</option>
							<option >5001-6000</option>
							<option >6001-7000</option>
							<option >7001-8000</option>
						</select>
					</div>
				</div>
				<div class="conditions time ue-clear">
					<label>发布时间：</label>
					<div class="time-select">
						<input name="release_time" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
						<i class="icon"></i>
					</div>
				</div>
				<div class="conditions name ue-clear">
					<label>学校：</label>
					<input style="width:195px;height:25px;border:1px solid #C5D6E0" name="school" type="text">
				</div>
				<input name="type" type="hidden" value="公司">
			</div>
			<div class="query-btn ue-clear">
				<input style="background-color:#8eb2d2;color:white;border-radius:10px" type="submit" value="查询"/>
				<input style="background-color:#EFF6FA;color:black;border-radius:10px" type="reset" value="清空"/>
			</div>
		</form>
	</div>
	<div class="table-box">
		<table>
			<thead>
			<tr>
				<th class="num">账户</th>
				<th class="num">密码</th>
				<th class="num">专业</th>
				<th class="num">毕业学校</th>
				<th class="num">联系方式</th>
				<th class="num">期望岗位</th>
				<th class="num">编辑/删除</th>
			</tr>
			</thead>
			<tbody>
			<c:forEach items="${candidates}" var ="candidate"  begin="0" varStatus="status">
				<tr>
					<td class="num">${candidate.name}</td>
					<td class="num">${candidate.password}</td>
					<td class="num">${candidate.major}</td>
					<td class="num">&nbsp;${candidate.school}</td>
					<td class="num">${candidate.phone_number}</td>
					<td class="num">${candidate.expected_position}</td>
					<td id="icon" class="num">
						<a class="num"  href="adminUpdateCandidate?c_id=${candidate.c_id }" title="编辑">
							<svg t="1647835126790" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12353" width="35" height="35"><path d="M414.72 723.2c-11.733333 11.733333-27.733333 18.56-44.16 18.773333l-164.266667 2.56c-18.986667-1.706667-33.92-16.64-35.626666-35.626666l2.56-164.266667c0.213333-16.64 7.04-32.426667 18.773333-44.16L498.56 193.92l222.72 222.72L414.72 723.2z" fill="#2953FF" p-id="12354"></path><path d="M749.226667 388.693333L526.293333 165.973333l41.813334-41.813333a85.504 85.504 0 0 1 120.746666 0l102.186667 102.186667a85.504 85.504 0 0 1 0 120.746666l-41.813333 41.6z" fill="#FCCA1E" p-id="12355"></path><path d="M789.333333 924.8H234.666667c-35.413333 0-64-28.586667-64-64s28.586667-64 64-64h554.666666c35.413333 0 64 28.586667 64 64s-28.586667 64-64 64z" fill="#93A8FF" p-id="12356"></path></svg></a>
						<a class="num" href="candidateDelete?c_id=${candidate.c_id}" title="删除" onclick="return confirm('您确定要删除吗？')">
							<svg t="1647835216012" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2962" width="35" height="35"><path d="M159.665 220.416c0-24.125 19.608-43.736 43.735-43.736h218.784v-43.789c0-24.125 19.61-43.735 43.846-43.735h87.467c24.183 0 43.793 19.61 43.793 43.735v43.789h218.781c24.183 0 43.792 19.61 43.792 43.736v43.791H159.665v-43.791z" fill="#00A0E9" p-id="2963"></path><path d="M203.4 307.942v583.534c0 24.127 19.608 43.735 43.789 43.735h525.094c24.238 0 43.789-19.608 43.789-43.735V307.941H203.4z m175.049 496.01c0 24.125-19.608 43.732-43.733 43.732-24.183 0-43.791-19.607-43.791-43.732V439.255c0-24.181 19.608-43.734 43.791-43.734 24.125 0 43.733 19.553 43.733 43.734v364.697z m175.048 0c0 24.125-19.551 43.732-43.733 43.732-24.237 0-43.734-19.607-43.734-43.732V439.255c0-24.181 19.498-43.734 43.734-43.734 24.182 0 43.733 19.553 43.733 43.734v364.697z m175.051 0c0 24.125-19.609 43.732-43.788 43.732-24.127 0-43.737-19.607-43.737-43.732V439.255c0-24.181 19.61-43.734 43.737-43.734 24.179 0 43.788 19.553 43.788 43.734v364.697z" fill="#036EB8" p-id="2964"></path></svg></a>
					</td>
				</tr>
			</c:forEach>
			</tbody>
		</table>
	</div>
	<div class="pagination ue-clear">
		<%--	分页--%>
		<%--		<nav aria-label="Page navigation">--%>
		<ul class="pagination">
			<%--				前一页--%>
			<c:choose>
				<c:when test="${pageInfo.isFirstPage}">
					<li>
						<a href="javascript:void(0)" aria-label="Previous">
							<span aria-hidden="true"><<</span>
						</a>
					</li>
				</c:when>
				<c:otherwise>
					<li>
						<a href="candidateManage?pageNum=${pageInfo.prePage}" aria-label="Previous">
							<span aria-hidden="true"><<</span>
						</a>
					</li>
				</c:otherwise>
			</c:choose>
			<%--			中间具体页数--%>
			<c:forEach items="${pageInfo.navigatepageNums}" var="pi">
				<li><a href="candidateManage?pageNum=${pi}">${pi}</a></li>
			</c:forEach>

			<%--			后一页--%>

			<c:choose>
				<c:when test="${pageInfo.isLastPage}">
					<li>
						<a href="javascript:void(0)" aria-label="Next">
							<span aria-hidden="true">>></span>
						</a>
					</li>
				</c:when>
				<c:otherwise>
					<li>
						<a href="candidateManage?pageNum=${pageInfo.nextPage}" aria-label="Next">
							<span aria-hidden="true">>></span>
						</a>
					</li>
				</c:otherwise>
			</c:choose>
		</ul>
		<%--		</nav>--%>
	</div>
		</div>
	</div>
</div>
</div>
</body>
<script type="text/javascript" src="js/timeChange.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/WdatePicker.js"></script>
<script type="text/javascript" src="js/core.js"></script>
<script type="text/javascript" src="js/jquery.dialog.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script>
function candidateSkip1(){  location.href="candidateManage"}
function candidateSkip2(){  location.href="employerManage"}
function candidateSkip3(){ const a_id="${sessionScope.admin.a_id}"; location.href="adminUpdate?a_id="+a_id}




    const  msg="${message}";
	if(msg){
		alert(msg);
	}
</script>
</html>
